#include "GameStaticText.h"
#include "MyRender.h"
#include "MyInputMgr.h"

extern CMyRender g_kRender;
extern CMyInputMgr g_kInputMgr;

CGameStaticText::CGameStaticText(void)
{
	m_eWndType = WT_STATIC_TEXT;
}

CGameStaticText::~CGameStaticText(void)
{
}

void CGameStaticText::OnDraw()
{
	int iTextWidth = GetTextSize(m_kText.c_str(),m_dwFontInfo).cx;
	int iTextHeight = GetTextSize(m_kText.c_str(),m_dwFontInfo).cy;

	g_kRender.DrawText(m_kText.c_str(),m_iAbsX + (m_iWidth - iTextWidth) / 2,m_iAbsY + (m_iHeight - iTextHeight) / 2,m_dwTextColor);
}
